package com.changgou.goods.dao;

import com.changgou.goods.pojo.Spec;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SpecMapper extends Mapper<Spec> {


    @Select("SELECT * from tb_spec where tb_spec.template_id in(select tb_spec.template_id from tb_category where tb_category.name=#{categoryName})")
    public List<Spec> findSpecListByCategoryName(String categoryName);
}
